<?php

/**
 * Created by PhpStorm.
 * User: man0sions
 * Date: 16/8/30
 * Time: 下午4:23
 */

namespace src\Factory\SpiderDataFactory;
use src\Factory\SpiderDataFactory;

/**
 * 格式化搜狐数据
 * Class SohuSpiderData
 * @package src\Factory\SpiderDataFactory
 * @author Luficer.p <81434146@qq.com>
 */
class SohuSpiderData extends SpiderDataFactory
{

    /**
     * @param \stdClass $class
     * @return mixed
     */
    function createPlaylistData(\stdClass $class)
    {
        return  $this->formatStrategy->formatPlaylist($class);
    }

    /**
     * @param \stdClass $class
     * @return mixed
     */
    function createVideoData(\stdClass $class)
    {
        return $this->formatStrategy->formatVideo($class);
    }
}